﻿<?php

require_once("../config/config.php");

echo $_GET['client'];

// Suppression des locations du client
$sql = "delete from locations
		where loc_cli = " . $_GET['client'];
$rq = execQuery($sql);


// Suppression du client
$sql = "delete from clients
		where cl_id = " . $_GET['client'];
$rq = execQuery($sql);

header("location: listeClients.php");

?>

<h1> Client <?php echo $_GET['client'] . " "; ?> supprimé. </h1>
<a href=listeClients.php>Retour</a>